package com.stx.common;

import com.stx.pojo.Judge;
import org.apache.ibatis.jdbc.Null;
import org.mindrot.jbcrypt.BCrypt;

import java.util.List;

public class Bcrypts {
    public static String hashPw(String password){
        return BCrypt.hashpw(password, BCrypt.gensalt());
    }
    public static boolean checkPw(String password,String newPassword){
        boolean checkpw = BCrypt.checkpw(password, newPassword);
        return checkpw;
    }
}
